package cz.data.domain.system.rpc;

import cz.data.common.annotation.DataInner;
import cz.data.domain.system.model.dto.LogDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "logServiceFeign", value = "system-domain-api")
public interface LogServiceFeign {

    @DataInner
    @PostMapping("/inner/logs")
    void saveLog(@RequestBody LogDto logDto);
}
